package com.union.core.organization.dao;

import java.util.List;

import com.union.core.organization.model.Personnel;

public interface PersonnelDao{
	/**
	 * 
	 * @param personnel_id
	 * @param personnel_name
	 * @param personnel_age
	 * @param personnel_sex
	 * @param personnel_position
	 * @param organization_name
	 * @param paramName
	 * @param paramValue
	 * @param orderByName
	 * @param start
	 * @param pageSize
	 * @return
	 */

	public List<Personnel> queryList(int personnel_id,String personnel_name,String birthday,String personnel_sex,String personnel_position,
			String organization_name, String department, String paramName, String paramValue, String orderByName,int start,int pageSize,int organization_id,String getChildLst);

	
	/**
	 * 
	 * @param personnel_id
	 * @param personnel_name
	 * @param personnel_age
	 * @param personnel_sex
	 * @param personnel_position
	 * @param organization_name
	 * @param paramName
	 * @param paramValue
	 * @param orderByName
	 * @return
	 */

	public int ListCount(int personnel_id,String personnel_name,String birthday,String personnel_sex,String personnel_position,
			String organization_name, String department, String paramName, String paramValue,int organization_id,String getChildLst);

	/**
	 * 
	 * @param personnel_id
	 * @return
	 */
	public Personnel query(int personnel_id);
	
	/**
	 * 
	 * @param personnel
	 * @return
	 */
	public boolean add(Personnel personnel);
	
	/**
	 * 
	 * @param personnel
	 * @return
	 */
	public boolean edit(Personnel personnel);
	
	/**
	 * 
	 * @param personnel_id
	 * @return
	 */
	public Boolean delete(int personnel_id);
	
	public Boolean deleteById(int organization_id);
	
	public Personnel query1(int organization_id);
	public boolean edit1(int account_id,String account_name);
}